<template>
  <div class="traffic" ref="homePage">
    <div class="bj">
      <van-nav-bar :title="size" style="background: #68c5ba;width: 100%;">
        <van-icon name="arrow-left" slot="left" color="#FFFFFF" @click="returnto" />
      </van-nav-bar>
    </div>
    <div style="width: 100%;height: 46px;"></div>
    <iframe :src="url" frameborder="0" width="100%" height="100%"></iframe>
  </div>
</template>

<script>
  // import city from '@/assets/js/city.js'
  // import AMap from "AMap"
  export default {

    components: {
      // "v-search": search,
    },
    data() {
      return {
        url:this.$route.query.url,
        size:this.$route.query.size,
      }
    },

    mounted() {
      this.clientHeight = `${document.documentElement.clientHeight}` //document.body.clientWidth;
      // console.log(this.clientHeight);
      // let dd = 100;
      this.$refs.homePage.style.height = this.clientHeight + 'px';
      // this.mapinit()
      // console.log(this.ityList)
      // console.log(this.chengshi)
      // for(let i=0;i < this.city.length;i++){
      //   console.log(this.city[0])
      // }
    },
    created() {
      // this.getLocation();
      // this.getLngLatLocation()
    },
    methods: {
      returnto(){//返回上一级
        this.$router.go(-1);

      },
    },

  }
</script>

<style lang="scss">
  .traffic {
    // height: 5rem;
    // background: red;
    height: 100%;
    width: 100%;
    // position: relative;

  }
</style>
